import { requestClient } from '#/api/request';

/**
 * 获取货期变更日志列表
 */
export async function getGoodsDeliveryTimeLogList(params: any) {
  return requestClient.get('/admin/GoodsDeliveryTimeLog/', params);
}

/**
 * 获取货期变更日志详情
 */
export async function getGoodsDeliveryTimeLogInfo(params: any) {
  return requestClient.get('/admin/GoodsDeliveryTimeLog/edit', params);
}

/**
 * 添加货期变更日志
 */
export async function addGoodsDeliveryTimeLog(params: any) {
  return requestClient.post('/admin/GoodsDeliveryTimeLog/add', params);
}

/**
 * 编辑货期变更日志
 */
export async function editGoodsDeliveryTimeLog(params: any) {
  return requestClient.post('/admin/GoodsDeliveryTimeLog/edit', params);
}

/**
 * 删除货期变更日志
 */
export async function deleteGoodsDeliveryTimeLog(params: any) {
  return requestClient.post('/admin/GoodsDeliveryTimeLog/del', params);
}

/**
 * 审核货期变更
 */
export async function approvalGoodsDeliveryTimeLog(params: any) {
  return requestClient.post('/admin/GoodsDeliveryTimeLog/approval', params);
}

/**
 * 获取标签统计数据
 */
export async function getTabsIndex(params?: any) {
  return requestClient.get('/admin/GoodsDeliveryTimeLog/getTabsIndex', params);
}

/**
 * 获取采购商品列表（用于批量选择）
 */
export async function getPurchaseGoodsList(params: any) {
  return requestClient.post('/admin/GoodsPurchase/goodsList', params);
}

